package com.lzm.pojo;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;

public class DrugExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public DrugExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        protected void addCriterionForJDBCDate(String condition, Date value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value.getTime()), property);
        }

        protected void addCriterionForJDBCDate(String condition, List<Date> values, String property) {
            if (values == null || values.size() == 0) {
                throw new RuntimeException("Value list for " + property + " cannot be null or empty");
            }
            List<java.sql.Date> dateList = new ArrayList<java.sql.Date>();
            Iterator<Date> iter = values.iterator();
            while (iter.hasNext()) {
                dateList.add(new java.sql.Date(iter.next().getTime()));
            }
            addCriterion(condition, dateList, property);
        }

        protected void addCriterionForJDBCDate(String condition, Date value1, Date value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value1.getTime()), new java.sql.Date(value2.getTime()), property);
        }

        public Criteria andDrug_idIsNull() {
            addCriterion("drug_id is null");
            return (Criteria) this;
        }

        public Criteria andDrug_idIsNotNull() {
            addCriterion("drug_id is not null");
            return (Criteria) this;
        }

        public Criteria andDrug_idEqualTo(Integer value) {
            addCriterion("drug_id =", value, "drug_id");
            return (Criteria) this;
        }

        public Criteria andDrug_idNotEqualTo(Integer value) {
            addCriterion("drug_id <>", value, "drug_id");
            return (Criteria) this;
        }

        public Criteria andDrug_idGreaterThan(Integer value) {
            addCriterion("drug_id >", value, "drug_id");
            return (Criteria) this;
        }

        public Criteria andDrug_idGreaterThanOrEqualTo(Integer value) {
            addCriterion("drug_id >=", value, "drug_id");
            return (Criteria) this;
        }

        public Criteria andDrug_idLessThan(Integer value) {
            addCriterion("drug_id <", value, "drug_id");
            return (Criteria) this;
        }

        public Criteria andDrug_idLessThanOrEqualTo(Integer value) {
            addCriterion("drug_id <=", value, "drug_id");
            return (Criteria) this;
        }

        public Criteria andDrug_idIn(List<Integer> values) {
            addCriterion("drug_id in", values, "drug_id");
            return (Criteria) this;
        }

        public Criteria andDrug_idNotIn(List<Integer> values) {
            addCriterion("drug_id not in", values, "drug_id");
            return (Criteria) this;
        }

        public Criteria andDrug_idBetween(Integer value1, Integer value2) {
            addCriterion("drug_id between", value1, value2, "drug_id");
            return (Criteria) this;
        }

        public Criteria andDrug_idNotBetween(Integer value1, Integer value2) {
            addCriterion("drug_id not between", value1, value2, "drug_id");
            return (Criteria) this;
        }

        public Criteria andDrug_urlIsNull() {
            addCriterion("drug_url is null");
            return (Criteria) this;
        }

        public Criteria andDrug_urlIsNotNull() {
            addCriterion("drug_url is not null");
            return (Criteria) this;
        }

        public Criteria andDrug_urlEqualTo(String value) {
            addCriterion("drug_url =", value, "drug_url");
            return (Criteria) this;
        }

        public Criteria andDrug_urlNotEqualTo(String value) {
            addCriterion("drug_url <>", value, "drug_url");
            return (Criteria) this;
        }

        public Criteria andDrug_urlGreaterThan(String value) {
            addCriterion("drug_url >", value, "drug_url");
            return (Criteria) this;
        }

        public Criteria andDrug_urlGreaterThanOrEqualTo(String value) {
            addCriterion("drug_url >=", value, "drug_url");
            return (Criteria) this;
        }

        public Criteria andDrug_urlLessThan(String value) {
            addCriterion("drug_url <", value, "drug_url");
            return (Criteria) this;
        }

        public Criteria andDrug_urlLessThanOrEqualTo(String value) {
            addCriterion("drug_url <=", value, "drug_url");
            return (Criteria) this;
        }

        public Criteria andDrug_urlLike(String value) {
            addCriterion("drug_url like", value, "drug_url");
            return (Criteria) this;
        }

        public Criteria andDrug_urlNotLike(String value) {
            addCriterion("drug_url not like", value, "drug_url");
            return (Criteria) this;
        }

        public Criteria andDrug_urlIn(List<String> values) {
            addCriterion("drug_url in", values, "drug_url");
            return (Criteria) this;
        }

        public Criteria andDrug_urlNotIn(List<String> values) {
            addCriterion("drug_url not in", values, "drug_url");
            return (Criteria) this;
        }

        public Criteria andDrug_urlBetween(String value1, String value2) {
            addCriterion("drug_url between", value1, value2, "drug_url");
            return (Criteria) this;
        }

        public Criteria andDrug_urlNotBetween(String value1, String value2) {
            addCriterion("drug_url not between", value1, value2, "drug_url");
            return (Criteria) this;
        }

        public Criteria andDrug_inPriceIsNull() {
            addCriterion("drug_inPrice is null");
            return (Criteria) this;
        }

        public Criteria andDrug_inPriceIsNotNull() {
            addCriterion("drug_inPrice is not null");
            return (Criteria) this;
        }

        public Criteria andDrug_inPriceEqualTo(BigDecimal value) {
            addCriterion("drug_inPrice =", value, "drug_inPrice");
            return (Criteria) this;
        }

        public Criteria andDrug_inPriceNotEqualTo(BigDecimal value) {
            addCriterion("drug_inPrice <>", value, "drug_inPrice");
            return (Criteria) this;
        }

        public Criteria andDrug_inPriceGreaterThan(BigDecimal value) {
            addCriterion("drug_inPrice >", value, "drug_inPrice");
            return (Criteria) this;
        }

        public Criteria andDrug_inPriceGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("drug_inPrice >=", value, "drug_inPrice");
            return (Criteria) this;
        }

        public Criteria andDrug_inPriceLessThan(BigDecimal value) {
            addCriterion("drug_inPrice <", value, "drug_inPrice");
            return (Criteria) this;
        }

        public Criteria andDrug_inPriceLessThanOrEqualTo(BigDecimal value) {
            addCriterion("drug_inPrice <=", value, "drug_inPrice");
            return (Criteria) this;
        }

        public Criteria andDrug_inPriceIn(List<BigDecimal> values) {
            addCriterion("drug_inPrice in", values, "drug_inPrice");
            return (Criteria) this;
        }

        public Criteria andDrug_inPriceNotIn(List<BigDecimal> values) {
            addCriterion("drug_inPrice not in", values, "drug_inPrice");
            return (Criteria) this;
        }

        public Criteria andDrug_inPriceBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("drug_inPrice between", value1, value2, "drug_inPrice");
            return (Criteria) this;
        }

        public Criteria andDrug_inPriceNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("drug_inPrice not between", value1, value2, "drug_inPrice");
            return (Criteria) this;
        }

        public Criteria andDrug_outPriceIsNull() {
            addCriterion("drug_outPrice is null");
            return (Criteria) this;
        }

        public Criteria andDrug_outPriceIsNotNull() {
            addCriterion("drug_outPrice is not null");
            return (Criteria) this;
        }

        public Criteria andDrug_outPriceEqualTo(BigDecimal value) {
            addCriterion("drug_outPrice =", value, "drug_outPrice");
            return (Criteria) this;
        }

        public Criteria andDrug_outPriceNotEqualTo(BigDecimal value) {
            addCriterion("drug_outPrice <>", value, "drug_outPrice");
            return (Criteria) this;
        }

        public Criteria andDrug_outPriceGreaterThan(BigDecimal value) {
            addCriterion("drug_outPrice >", value, "drug_outPrice");
            return (Criteria) this;
        }

        public Criteria andDrug_outPriceGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("drug_outPrice >=", value, "drug_outPrice");
            return (Criteria) this;
        }

        public Criteria andDrug_outPriceLessThan(BigDecimal value) {
            addCriterion("drug_outPrice <", value, "drug_outPrice");
            return (Criteria) this;
        }

        public Criteria andDrug_outPriceLessThanOrEqualTo(BigDecimal value) {
            addCriterion("drug_outPrice <=", value, "drug_outPrice");
            return (Criteria) this;
        }

        public Criteria andDrug_outPriceIn(List<BigDecimal> values) {
            addCriterion("drug_outPrice in", values, "drug_outPrice");
            return (Criteria) this;
        }

        public Criteria andDrug_outPriceNotIn(List<BigDecimal> values) {
            addCriterion("drug_outPrice not in", values, "drug_outPrice");
            return (Criteria) this;
        }

        public Criteria andDrug_outPriceBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("drug_outPrice between", value1, value2, "drug_outPrice");
            return (Criteria) this;
        }

        public Criteria andDrug_outPriceNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("drug_outPrice not between", value1, value2, "drug_outPrice");
            return (Criteria) this;
        }

        public Criteria andDrug_nameIsNull() {
            addCriterion("drug_name is null");
            return (Criteria) this;
        }

        public Criteria andDrug_nameIsNotNull() {
            addCriterion("drug_name is not null");
            return (Criteria) this;
        }

        public Criteria andDrug_nameEqualTo(String value) {
            addCriterion("drug_name =", value, "drug_name");
            return (Criteria) this;
        }

        public Criteria andDrug_nameNotEqualTo(String value) {
            addCriterion("drug_name <>", value, "drug_name");
            return (Criteria) this;
        }

        public Criteria andDrug_nameGreaterThan(String value) {
            addCriterion("drug_name >", value, "drug_name");
            return (Criteria) this;
        }

        public Criteria andDrug_nameGreaterThanOrEqualTo(String value) {
            addCriterion("drug_name >=", value, "drug_name");
            return (Criteria) this;
        }

        public Criteria andDrug_nameLessThan(String value) {
            addCriterion("drug_name <", value, "drug_name");
            return (Criteria) this;
        }

        public Criteria andDrug_nameLessThanOrEqualTo(String value) {
            addCriterion("drug_name <=", value, "drug_name");
            return (Criteria) this;
        }

        public Criteria andDrug_nameLike(String value) {
            addCriterion("drug_name like", value, "drug_name");
            return (Criteria) this;
        }

        public Criteria andDrug_nameNotLike(String value) {
            addCriterion("drug_name not like", value, "drug_name");
            return (Criteria) this;
        }

        public Criteria andDrug_nameIn(List<String> values) {
            addCriterion("drug_name in", values, "drug_name");
            return (Criteria) this;
        }

        public Criteria andDrug_nameNotIn(List<String> values) {
            addCriterion("drug_name not in", values, "drug_name");
            return (Criteria) this;
        }

        public Criteria andDrug_nameBetween(String value1, String value2) {
            addCriterion("drug_name between", value1, value2, "drug_name");
            return (Criteria) this;
        }

        public Criteria andDrug_nameNotBetween(String value1, String value2) {
            addCriterion("drug_name not between", value1, value2, "drug_name");
            return (Criteria) this;
        }

        public Criteria andDrug_typeIsNull() {
            addCriterion("drug_type is null");
            return (Criteria) this;
        }

        public Criteria andDrug_typeIsNotNull() {
            addCriterion("drug_type is not null");
            return (Criteria) this;
        }

        public Criteria andDrug_typeEqualTo(String value) {
            addCriterion("drug_type =", value, "drug_type");
            return (Criteria) this;
        }

        public Criteria andDrug_typeNotEqualTo(String value) {
            addCriterion("drug_type <>", value, "drug_type");
            return (Criteria) this;
        }

        public Criteria andDrug_typeGreaterThan(String value) {
            addCriterion("drug_type >", value, "drug_type");
            return (Criteria) this;
        }

        public Criteria andDrug_typeGreaterThanOrEqualTo(String value) {
            addCriterion("drug_type >=", value, "drug_type");
            return (Criteria) this;
        }

        public Criteria andDrug_typeLessThan(String value) {
            addCriterion("drug_type <", value, "drug_type");
            return (Criteria) this;
        }

        public Criteria andDrug_typeLessThanOrEqualTo(String value) {
            addCriterion("drug_type <=", value, "drug_type");
            return (Criteria) this;
        }

        public Criteria andDrug_typeLike(String value) {
            addCriterion("drug_type like", value, "drug_type");
            return (Criteria) this;
        }

        public Criteria andDrug_typeNotLike(String value) {
            addCriterion("drug_type not like", value, "drug_type");
            return (Criteria) this;
        }

        public Criteria andDrug_typeIn(List<String> values) {
            addCriterion("drug_type in", values, "drug_type");
            return (Criteria) this;
        }

        public Criteria andDrug_typeNotIn(List<String> values) {
            addCriterion("drug_type not in", values, "drug_type");
            return (Criteria) this;
        }

        public Criteria andDrug_typeBetween(String value1, String value2) {
            addCriterion("drug_type between", value1, value2, "drug_type");
            return (Criteria) this;
        }

        public Criteria andDrug_typeNotBetween(String value1, String value2) {
            addCriterion("drug_type not between", value1, value2, "drug_type");
            return (Criteria) this;
        }

        public Criteria andDrug_simDescIsNull() {
            addCriterion("drug_simDesc is null");
            return (Criteria) this;
        }

        public Criteria andDrug_simDescIsNotNull() {
            addCriterion("drug_simDesc is not null");
            return (Criteria) this;
        }

        public Criteria andDrug_simDescEqualTo(String value) {
            addCriterion("drug_simDesc =", value, "drug_simDesc");
            return (Criteria) this;
        }

        public Criteria andDrug_simDescNotEqualTo(String value) {
            addCriterion("drug_simDesc <>", value, "drug_simDesc");
            return (Criteria) this;
        }

        public Criteria andDrug_simDescGreaterThan(String value) {
            addCriterion("drug_simDesc >", value, "drug_simDesc");
            return (Criteria) this;
        }

        public Criteria andDrug_simDescGreaterThanOrEqualTo(String value) {
            addCriterion("drug_simDesc >=", value, "drug_simDesc");
            return (Criteria) this;
        }

        public Criteria andDrug_simDescLessThan(String value) {
            addCriterion("drug_simDesc <", value, "drug_simDesc");
            return (Criteria) this;
        }

        public Criteria andDrug_simDescLessThanOrEqualTo(String value) {
            addCriterion("drug_simDesc <=", value, "drug_simDesc");
            return (Criteria) this;
        }

        public Criteria andDrug_simDescLike(String value) {
            addCriterion("drug_simDesc like", value, "drug_simDesc");
            return (Criteria) this;
        }

        public Criteria andDrug_simDescNotLike(String value) {
            addCriterion("drug_simDesc not like", value, "drug_simDesc");
            return (Criteria) this;
        }

        public Criteria andDrug_simDescIn(List<String> values) {
            addCriterion("drug_simDesc in", values, "drug_simDesc");
            return (Criteria) this;
        }

        public Criteria andDrug_simDescNotIn(List<String> values) {
            addCriterion("drug_simDesc not in", values, "drug_simDesc");
            return (Criteria) this;
        }

        public Criteria andDrug_simDescBetween(String value1, String value2) {
            addCriterion("drug_simDesc between", value1, value2, "drug_simDesc");
            return (Criteria) this;
        }

        public Criteria andDrug_simDescNotBetween(String value1, String value2) {
            addCriterion("drug_simDesc not between", value1, value2, "drug_simDesc");
            return (Criteria) this;
        }

        public Criteria andDrug_endDateIsNull() {
            addCriterion("drug_endDate is null");
            return (Criteria) this;
        }

        public Criteria andDrug_endDateIsNotNull() {
            addCriterion("drug_endDate is not null");
            return (Criteria) this;
        }

        public Criteria andDrug_endDateEqualTo(Date value) {
            addCriterionForJDBCDate("drug_endDate =", value, "drug_endDate");
            return (Criteria) this;
        }

        public Criteria andDrug_endDateNotEqualTo(Date value) {
            addCriterionForJDBCDate("drug_endDate <>", value, "drug_endDate");
            return (Criteria) this;
        }

        public Criteria andDrug_endDateGreaterThan(Date value) {
            addCriterionForJDBCDate("drug_endDate >", value, "drug_endDate");
            return (Criteria) this;
        }

        public Criteria andDrug_endDateGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("drug_endDate >=", value, "drug_endDate");
            return (Criteria) this;
        }

        public Criteria andDrug_endDateLessThan(Date value) {
            addCriterionForJDBCDate("drug_endDate <", value, "drug_endDate");
            return (Criteria) this;
        }

        public Criteria andDrug_endDateLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("drug_endDate <=", value, "drug_endDate");
            return (Criteria) this;
        }

        public Criteria andDrug_endDateIn(List<Date> values) {
            addCriterionForJDBCDate("drug_endDate in", values, "drug_endDate");
            return (Criteria) this;
        }

        public Criteria andDrug_endDateNotIn(List<Date> values) {
            addCriterionForJDBCDate("drug_endDate not in", values, "drug_endDate");
            return (Criteria) this;
        }

        public Criteria andDrug_endDateBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("drug_endDate between", value1, value2, "drug_endDate");
            return (Criteria) this;
        }

        public Criteria andDrug_endDateNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("drug_endDate not between", value1, value2, "drug_endDate");
            return (Criteria) this;
        }

        public Criteria andDrug_detaDescIsNull() {
            addCriterion("drug_detaDesc is null");
            return (Criteria) this;
        }

        public Criteria andDrug_detaDescIsNotNull() {
            addCriterion("drug_detaDesc is not null");
            return (Criteria) this;
        }

        public Criteria andDrug_detaDescEqualTo(String value) {
            addCriterion("drug_detaDesc =", value, "drug_detaDesc");
            return (Criteria) this;
        }

        public Criteria andDrug_detaDescNotEqualTo(String value) {
            addCriterion("drug_detaDesc <>", value, "drug_detaDesc");
            return (Criteria) this;
        }

        public Criteria andDrug_detaDescGreaterThan(String value) {
            addCriterion("drug_detaDesc >", value, "drug_detaDesc");
            return (Criteria) this;
        }

        public Criteria andDrug_detaDescGreaterThanOrEqualTo(String value) {
            addCriterion("drug_detaDesc >=", value, "drug_detaDesc");
            return (Criteria) this;
        }

        public Criteria andDrug_detaDescLessThan(String value) {
            addCriterion("drug_detaDesc <", value, "drug_detaDesc");
            return (Criteria) this;
        }

        public Criteria andDrug_detaDescLessThanOrEqualTo(String value) {
            addCriterion("drug_detaDesc <=", value, "drug_detaDesc");
            return (Criteria) this;
        }

        public Criteria andDrug_detaDescLike(String value) {
            addCriterion("drug_detaDesc like", value, "drug_detaDesc");
            return (Criteria) this;
        }

        public Criteria andDrug_detaDescNotLike(String value) {
            addCriterion("drug_detaDesc not like", value, "drug_detaDesc");
            return (Criteria) this;
        }

        public Criteria andDrug_detaDescIn(List<String> values) {
            addCriterion("drug_detaDesc in", values, "drug_detaDesc");
            return (Criteria) this;
        }

        public Criteria andDrug_detaDescNotIn(List<String> values) {
            addCriterion("drug_detaDesc not in", values, "drug_detaDesc");
            return (Criteria) this;
        }

        public Criteria andDrug_detaDescBetween(String value1, String value2) {
            addCriterion("drug_detaDesc between", value1, value2, "drug_detaDesc");
            return (Criteria) this;
        }

        public Criteria andDrug_detaDescNotBetween(String value1, String value2) {
            addCriterion("drug_detaDesc not between", value1, value2, "drug_detaDesc");
            return (Criteria) this;
        }

        public Criteria andDrug_fatoryIsNull() {
            addCriterion("drug_fatory is null");
            return (Criteria) this;
        }

        public Criteria andDrug_fatoryIsNotNull() {
            addCriterion("drug_fatory is not null");
            return (Criteria) this;
        }

        public Criteria andDrug_fatoryEqualTo(String value) {
            addCriterion("drug_fatory =", value, "drug_fatory");
            return (Criteria) this;
        }

        public Criteria andDrug_fatoryNotEqualTo(String value) {
            addCriterion("drug_fatory <>", value, "drug_fatory");
            return (Criteria) this;
        }

        public Criteria andDrug_fatoryGreaterThan(String value) {
            addCriterion("drug_fatory >", value, "drug_fatory");
            return (Criteria) this;
        }

        public Criteria andDrug_fatoryGreaterThanOrEqualTo(String value) {
            addCriterion("drug_fatory >=", value, "drug_fatory");
            return (Criteria) this;
        }

        public Criteria andDrug_fatoryLessThan(String value) {
            addCriterion("drug_fatory <", value, "drug_fatory");
            return (Criteria) this;
        }

        public Criteria andDrug_fatoryLessThanOrEqualTo(String value) {
            addCriterion("drug_fatory <=", value, "drug_fatory");
            return (Criteria) this;
        }

        public Criteria andDrug_fatoryLike(String value) {
            addCriterion("drug_fatory like", value, "drug_fatory");
            return (Criteria) this;
        }

        public Criteria andDrug_fatoryNotLike(String value) {
            addCriterion("drug_fatory not like", value, "drug_fatory");
            return (Criteria) this;
        }

        public Criteria andDrug_fatoryIn(List<String> values) {
            addCriterion("drug_fatory in", values, "drug_fatory");
            return (Criteria) this;
        }

        public Criteria andDrug_fatoryNotIn(List<String> values) {
            addCriterion("drug_fatory not in", values, "drug_fatory");
            return (Criteria) this;
        }

        public Criteria andDrug_fatoryBetween(String value1, String value2) {
            addCriterion("drug_fatory between", value1, value2, "drug_fatory");
            return (Criteria) this;
        }

        public Criteria andDrug_fatoryNotBetween(String value1, String value2) {
            addCriterion("drug_fatory not between", value1, value2, "drug_fatory");
            return (Criteria) this;
        }

        public Criteria andDrug_directionIsNull() {
            addCriterion("drug_direction is null");
            return (Criteria) this;
        }

        public Criteria andDrug_directionIsNotNull() {
            addCriterion("drug_direction is not null");
            return (Criteria) this;
        }

        public Criteria andDrug_directionEqualTo(String value) {
            addCriterion("drug_direction =", value, "drug_direction");
            return (Criteria) this;
        }

        public Criteria andDrug_directionNotEqualTo(String value) {
            addCriterion("drug_direction <>", value, "drug_direction");
            return (Criteria) this;
        }

        public Criteria andDrug_directionGreaterThan(String value) {
            addCriterion("drug_direction >", value, "drug_direction");
            return (Criteria) this;
        }

        public Criteria andDrug_directionGreaterThanOrEqualTo(String value) {
            addCriterion("drug_direction >=", value, "drug_direction");
            return (Criteria) this;
        }

        public Criteria andDrug_directionLessThan(String value) {
            addCriterion("drug_direction <", value, "drug_direction");
            return (Criteria) this;
        }

        public Criteria andDrug_directionLessThanOrEqualTo(String value) {
            addCriterion("drug_direction <=", value, "drug_direction");
            return (Criteria) this;
        }

        public Criteria andDrug_directionLike(String value) {
            addCriterion("drug_direction like", value, "drug_direction");
            return (Criteria) this;
        }

        public Criteria andDrug_directionNotLike(String value) {
            addCriterion("drug_direction not like", value, "drug_direction");
            return (Criteria) this;
        }

        public Criteria andDrug_directionIn(List<String> values) {
            addCriterion("drug_direction in", values, "drug_direction");
            return (Criteria) this;
        }

        public Criteria andDrug_directionNotIn(List<String> values) {
            addCriterion("drug_direction not in", values, "drug_direction");
            return (Criteria) this;
        }

        public Criteria andDrug_directionBetween(String value1, String value2) {
            addCriterion("drug_direction between", value1, value2, "drug_direction");
            return (Criteria) this;
        }

        public Criteria andDrug_directionNotBetween(String value1, String value2) {
            addCriterion("drug_direction not between", value1, value2, "drug_direction");
            return (Criteria) this;
        }

        public Criteria andDrug_remarkIsNull() {
            addCriterion("drug_remark is null");
            return (Criteria) this;
        }

        public Criteria andDrug_remarkIsNotNull() {
            addCriterion("drug_remark is not null");
            return (Criteria) this;
        }

        public Criteria andDrug_remarkEqualTo(String value) {
            addCriterion("drug_remark =", value, "drug_remark");
            return (Criteria) this;
        }

        public Criteria andDrug_remarkNotEqualTo(String value) {
            addCriterion("drug_remark <>", value, "drug_remark");
            return (Criteria) this;
        }

        public Criteria andDrug_remarkGreaterThan(String value) {
            addCriterion("drug_remark >", value, "drug_remark");
            return (Criteria) this;
        }

        public Criteria andDrug_remarkGreaterThanOrEqualTo(String value) {
            addCriterion("drug_remark >=", value, "drug_remark");
            return (Criteria) this;
        }

        public Criteria andDrug_remarkLessThan(String value) {
            addCriterion("drug_remark <", value, "drug_remark");
            return (Criteria) this;
        }

        public Criteria andDrug_remarkLessThanOrEqualTo(String value) {
            addCriterion("drug_remark <=", value, "drug_remark");
            return (Criteria) this;
        }

        public Criteria andDrug_remarkLike(String value) {
            addCriterion("drug_remark like", value, "drug_remark");
            return (Criteria) this;
        }

        public Criteria andDrug_remarkNotLike(String value) {
            addCriterion("drug_remark not like", value, "drug_remark");
            return (Criteria) this;
        }

        public Criteria andDrug_remarkIn(List<String> values) {
            addCriterion("drug_remark in", values, "drug_remark");
            return (Criteria) this;
        }

        public Criteria andDrug_remarkNotIn(List<String> values) {
            addCriterion("drug_remark not in", values, "drug_remark");
            return (Criteria) this;
        }

        public Criteria andDrug_remarkBetween(String value1, String value2) {
            addCriterion("drug_remark between", value1, value2, "drug_remark");
            return (Criteria) this;
        }

        public Criteria andDrug_remarkNotBetween(String value1, String value2) {
            addCriterion("drug_remark not between", value1, value2, "drug_remark");
            return (Criteria) this;
        }

        public Criteria andDrug_numberIsNull() {
            addCriterion("drug_number is null");
            return (Criteria) this;
        }

        public Criteria andDrug_numberIsNotNull() {
            addCriterion("drug_number is not null");
            return (Criteria) this;
        }

        public Criteria andDrug_numberEqualTo(Integer value) {
            addCriterion("drug_number =", value, "drug_number");
            return (Criteria) this;
        }

        public Criteria andDrug_numberNotEqualTo(Integer value) {
            addCriterion("drug_number <>", value, "drug_number");
            return (Criteria) this;
        }

        public Criteria andDrug_numberGreaterThan(Integer value) {
            addCriterion("drug_number >", value, "drug_number");
            return (Criteria) this;
        }

        public Criteria andDrug_numberGreaterThanOrEqualTo(Integer value) {
            addCriterion("drug_number >=", value, "drug_number");
            return (Criteria) this;
        }

        public Criteria andDrug_numberLessThan(Integer value) {
            addCriterion("drug_number <", value, "drug_number");
            return (Criteria) this;
        }

        public Criteria andDrug_numberLessThanOrEqualTo(Integer value) {
            addCriterion("drug_number <=", value, "drug_number");
            return (Criteria) this;
        }

        public Criteria andDrug_numberIn(List<Integer> values) {
            addCriterion("drug_number in", values, "drug_number");
            return (Criteria) this;
        }

        public Criteria andDrug_numberNotIn(List<Integer> values) {
            addCriterion("drug_number not in", values, "drug_number");
            return (Criteria) this;
        }

        public Criteria andDrug_numberBetween(Integer value1, Integer value2) {
            addCriterion("drug_number between", value1, value2, "drug_number");
            return (Criteria) this;
        }

        public Criteria andDrug_numberNotBetween(Integer value1, Integer value2) {
            addCriterion("drug_number not between", value1, value2, "drug_number");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}